package ch6.ex13;

import static ch6.print.Print.*;

class ThreeOverLoads{
	public void f(int i){
		println("f(int i)");
	}
	
	public void f(char c){
		println("f(char c)");
	}
	
	public void f(double d){
		println("f(double d)");
	}
}

class MoreOverloads extends ThreeOverLoads{
	public void f(String s){
		println("f(String s)");
	}
}

public class InheritedOverloading {
	public static void main(String... args){
		MoreOverloads mo = new MoreOverloads();
		mo.f(1);
		mo.f('c');
		mo.f(1.1);
		mo.f("Hello");
	}
}
